import { useWeatherStore } from '@/stores/weather'

async function init() {
  const weatherStore = useWeatherStore()

  // 初始化默认位置和天气
  await weatherStore.initializeDefaultLocation()
  // // 获取空气质量
  // await weatherStore.getAirQuality(
  //   weatherStore.defaultLocation?.lat,
  //   weatherStore.defaultLocation?.lon,
  // )
  // // 获取天气指数
  // await weatherStore.getweatherIndices(1, weatherStore.defaultLocation?.id)
}

export default init
